﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SistemaInventarioMVC.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            //ViewBag.Message = "";
            //Articulo articulo = new Articulo{ ArticuloID = 1, Nombre="Articulo Sexy"};
            //Session["Articulo"] = articulo;
            return View();
        }

        public ActionResult About()
        {
            //Articulo art = Session["Articulo"] as Articulo;
            //ViewBag.Message = art.Nombre;
            //art.Nombre = "Articulo Gabillero";
            //Session["Articulo"] = art;
            
            return View();

        }

        public ActionResult ArticuloIndex() 
        {
            //ViewBag.Message = (Session["Articulo"] as Articulo).Nombre;
            return View();
        }
    }
}
